<BOUCLE_one_article(ARTICLES){id_article=#ENV{id_article}}{statut IN publie,prepa}>
<script src="#CHEMIN{formulaires/ecatalogue_article_accessoire/ecatalogue_article_accessoire_js.php}"></script>
<div class='formulaire_spip'>
    [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV**{message_ok})</p>]
	[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
    
    <form method='post' action='#ENV{action}' id="ecatalogue_article_accessoire_form"><div>
    <input type="hidden" value="" name="id_accessoire_delete" id="id_accessoire_delete" />
			#ACTION_FORMULAIRE{#ENV{action}}
            <h3 style="text-align: center;"><:ecatalogue:add_accessoire:></h3>
			<ul>
            [(#REM)  ]
            <?php
            // Articles select method according to config value 
            if (lire_config('ecatalogue/articles_select')!='enhanced') { ?>            
                <INCLURE{fond=prive/select_articles/simple,name=selected_articles,id_rubrique=#ID_RUBRIQUE}>                
            <?php } else { ?>            
                [(#SAISIE{selecteur_article, selected_articles,
				        label=<:ecatalogue:select_products:>,
				        multiple=0})]
            <?php } ?>
			</ul>
			
			<p class='boutons'>
				<input type='submit' name='save_submit' value='<:bouton_enregistrer:>' />
			</p>
            
            
            <B_accessoires>
<div class="liste-elements accessoires">
<table class='spip liste'>
<caption><strong class="caption"><:ecatalogue:accessoires_list:></strong></caption>
	<thead>
		<tr class='first_row'>
			<th class='id_article'>ID</th>
            <th class='statut'><:ecatalogue:status:></th>
            <th class='sku'><:ecatalogue:sku:></th>
			<th class='titre'><:ecatalogue:product_name:></th>
            <th class='logo_article'></th>			
			<th class='price'><:ecatalogue:price:></th>
            <th>&nbsp;</th>			
		</tr>
	</thead>
	<tbody>
	<BOUCLE_accessoires(ECATALOGUE_ARTICLES_ACCESSOIRES){id_article=#ENV{id_article}}>
        <BOUCLE_acc_article(ARTICLES spip_ecatalogue_products){id_article=#ID_ACCESSOIRE}{par titre}
            {id_article!=#ID_ARTICLE}{statut IN publie,prepa}>        
		<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
			<td class='id_article'>#ID_ARTICLE</td>
            <td class='statut'>[(#ID_ARTICLE|puce_changement_statut{#STATUT,#ID_RUBRIQUE,article})]</td>
            <td class='sku'><a href="#URL_ECRIRE{articles, id_article=#ID_ARTICLE}">#SKU</a></td>
			<td class='titre'><a href="#URL_ECRIRE{articles, id_article=#ID_ARTICLE}">#TITRE</a></td>
            <td class='logo_article'>[(#LOGO_ARTICLE|image_reduire{30})]</td>			
			<td class='prix'>#PRICE</td>
            <td class='delete'><a href="javascript:;" class="delete_link" data-id_article="#ID_ARTICLE"><:ecatalogue:delete:></a></td>			
		</tr>        
	   </BOUCLE_acc_article>
	</BOUCLE_accessoires>
	</tbody>
</table>
</div>
</B_accessoires>
<div class="liste-elements accessoires"><strong class="caption"><:ecatalogue:no_accessoires:></strong></div>
<//B_accessoires>
            
            			
		</div></form>
    
</div>

</BOUCLE_one_article>
    <:ecatalogue:no_such_product:>
<//B_one_article>